
<%@page import="database.DBProduksi"%>
<%@page import="model.Produksi"%>

<%@ include file="header.jsp"%>




<%@page import="java.util.*" %>

<!-- start: Content -->
<div id="content" class="span10">


    <ul class="breadcrumb">
        <li>
            <i class="icon-home"></i>
            <a href="index.html">Home</a> 
            <i class="icon-angle-right"></i>
        </li>
        <li><a href="#">Tables</a></li>
    </ul>

    <div class="row-fluid sortable">		
        <div class="box span12">
            <div class="box-header" data-original-title>
                <h2><i class="halflings-icon user"></i><span class="break"></span>Pegawai</h2>

            </div>
            <div class="box-content">

                <table class="table table-striped table-bordered bootstrap-datatable datatable">
                    <thead>
                        <tr>
                            <th>Kode Produksi</th>
                            <th>Kode Barang</th>

                            <th>Jumlah Produksi</th>
                            <th>Jumlah Biaya</th>

                            <th>Tanggal Produksi</th>

                            <th>Action</th>
                        </tr>
                    </thead> 
                    <tbody>
                        <%
                            Produksi bean = new Produksi();

                         
                            List list = (List) request.getAttribute("listProduksi");                            //  request.setAttribute("list", list);

                            if (list != null) {
                                for (int i = 0; i < list.size(); i++) {
                                    bean = (Produksi) list.get(i);

                        %>

                        <tr>
                            <td><%=bean.getProduksiId()%></td>
                            <td class="center"><%=bean.getKodeBarang()%></td>

                            <td class="center"><%=bean.getJumlahPrduksi()%></td>
                            <td class="center"><%=bean.getBiaya()%></td>

                            <td class="center"><%=bean.getTgl()%></td>

                            <td class="center">

                                <a class="btn btn-info" href="ProduksiServlet?action=edit&id=<%=bean.getProduksiId()%>">
                                    <i class="halflings-icon white edit"></i>  
                                    Ubah
                                </a>
                                <a onclick="return confirm('Apa Anda yakin ingin manghapus?')" class="btn btn-danger" href="ProduksiServlet?action=delete&id=<%=bean.getProduksiId()%>">
                                    <i class="halflings-icon white trash"></i> 
                                    Hapus
                                </a>
                            </td>
                        </tr>


                        <%
                                }
                            }
                        %>
                    </tbody>
                </table>            
            </div>
        </div><!--/span-->

    </div><!--/row-->






</div><!--/.fluid-container-->

<!-- end: Content -->
</div><!--/#content.span10-->
</div><!--/fluid-row-->

<%@ include file="footer.jsp"%>

